package com.ruoyi.system.wnjk.service;

import java.util.List;
import com.ruoyi.system.wnjk.domain.po.PhysicalOrder;

/**
 * 体检订单Service接口
 * 
 * @author ruoyi
 * @date 2025-03-08
 */
public interface IWnjkPhysicalExaminationOrderService 
{
    /**
     * 查询体检订单
     * 
     * @param orderId 体检订单主键
     * @return 体检订单
     */
    public PhysicalOrder selectWnjkPhysicalExaminationOrderByOrderId(String orderId);

    /**
     * 查询体检订单列表
     * 
     * @param wnjkPhysicalExaminationOrder 体检订单
     * @return 体检订单集合
     */
    public List<PhysicalOrder> selectWnjkPhysicalExaminationOrderList(PhysicalOrder wnjkPhysicalExaminationOrder);

    /**
     * 新增体检订单
     * 
     * @param wnjkPhysicalExaminationOrder 体检订单
     * @return 结果
     */
    public int insertWnjkPhysicalExaminationOrder(PhysicalOrder wnjkPhysicalExaminationOrder);

    /**
     * 修改体检订单
     * 
     * @param wnjkPhysicalExaminationOrder 体检订单
     * @return 结果
     */
    public int updateWnjkPhysicalExaminationOrder(PhysicalOrder wnjkPhysicalExaminationOrder);

    /**
     * 批量删除体检订单
     * 
     * @param orderIds 需要删除的体检订单主键集合
     * @return 结果
     */
    public int deleteWnjkPhysicalExaminationOrderByOrderIds(String[] orderIds);

    /**
     * 删除体检订单信息
     * 
     * @param orderId 体检订单主键
     * @return 结果
     */
    public int deleteWnjkPhysicalExaminationOrderByOrderId(String orderId);

    // 根据outTradeNo查询体检订单
    PhysicalOrder selectByOutTradeNo(String outTradeNo);

    List<PhysicalOrder> selectWnjkPhysicalExaminationOrderByUserId(Long id);

    // 查询过期体检订单
    List<PhysicalOrder> selectExpiredOrders();

    int updateExpiredOrder(PhysicalOrder order);

    // 查询所有体检订单
    List<PhysicalOrder> selectAllOrders();
}